<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>伪元素选择器使用案例-字体图标</title>
    <style>
      @font-face {
        font-family: "icomoon";
        src: url("fonts/icomoon.eot?1lv3na");
        src: url("fonts/icomoon.eot?1lv3na#iefix") format("embedded-opentype"),
          url("fonts/icomoon.ttf?1lv3na") format("truetype"),
          url("fonts/icomoon.woff?1lv3na") format("woff"),
          url("fonts/icomoon.svg?1lv3na#icomoon") format("svg");
        font-weight: normal;
        font-style: normal;
        font-display: block;
      }

      div {
        position: relative;
        width: 200px;
        height: 35px;
        border: 1px solid red;
      }

      div::after {
        position: absolute;
        top: 10px;
        right: 10px;
        font-family: "icomoon";
        /* content: ''; */
        content: "\e91e";
        color: red;
        font-size: 18px;
      }
    </style>
  </head>

  <body>
    <div></div>
  </body>
</html>
